package com.cml.dm.engine.config;

import com.cml.dm.engine.model.Node;
import com.cml.dm.engine.model.Task;
import org.dom4j.Element;

public class XmlNodeParserFactory {
    public static XmlNodeParser getXmlNodeParser(Element el){
        if("task".equals(el.getName())){
            return new TaskXmlNodeParser<Task>();
        }else{
            return new NodeXmlNodeParser<Node>();
        }
    }
}
